import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import echarts from './views/charts/echarts.vue'

import department from './views/org/Department.vue'
import employee from './views/org/Employee.vue'
import dictionaryType from './views/org/DictionaryType.vue'
import dictionaryDetail from './views/org/DictionaryDetail.vue'
import shopRegister from './views/ShopRegister.vue'
import register2 from './views/Register2.vue'
import shop from './views/org/Shop.vue'
import role from './views/system/Role.vue'
import noPermission from './views/NoPermission.vue'
import product from './views/product/Product.vue'
import searchMasterMsgTohandle from './views/searchMsg/SearchMasterMsgTohandle.vue'


let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/register2',
        component: register2,
        name: '',
        hidden: true
    },
    {
        path: '/shopRegister',
        component: shopRegister,
        name: '',
        hidden: true
    },
    {
        path: '/noPermission',
        component: noPermission,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    //{ path: '/main', component: Main },
    {
        path: '/',
        component: Home,
        name: 'Charts',
        leaf:true,  //叶子节点
        iconCls: 'fa fa-bar-chart',
        children: [
            { path: '/echarts', component: echarts, name: 'echarts' }
        ]
    },

    /*{
        path: '/',
        component: Home,
        name: '组织机构',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/dept', component: department, name: '部门管理'},
            { path: '/employee', component: employee, name: '员工管理' },
            { path: '/shop', component: shop, name: '商铺管理' },
        ]
    },
    {
        path: '/',
        component: Home,
        name: '导航二',
        iconCls: 'fa fa-id-card-o',
        children: [
            { path: '/dictionaryType', component: dictionaryType, name: '数据字典' },
            { path: '/dictionaryDetail', component: dictionaryDetail, name: '数据明细' }
        ]
    },
    {
        path: '/',
        component: Home,
        name: '系统管理',
        iconCls: 'fa fa-address-card',
        leaf: true,//只有一个节点
        children: [
            { path: '/role', component: role, name: '角色管理' }
        ]
    },*/

    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }

];

export default routes;